<?php

namespace App\Http\Controllers\Web;

use App\Repository\Models\User;
use App\Repository\Repositories\Interfaces\UserRepository;
use Illuminate\Http\Request;
use App\ConstDir\ErrorConst;

/**
 * 购物车管理控制器
 *
 * @package App\Http\Controllers\Backend
 */
class UserController extends BaseController
{
    /**
     * @var UserController
     */
    protected $request;
    protected $user;

    public function __construct(UserRepository $user,Request $request)
    {
        $this->request = $request;
        $this->user = $user;
    }

    public function index()
    {
    }

    public function store()
    {

        $data=$this->user->create($this->request->all());
        return $this->success(ErrorConst::SUCCESS_CODE_MSG, $data['data'], true);

    }



    public function update($id)
    {
    }

    public function delete($id)
    {

    }

}
